package kickboxing.model;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "newsy")
public class Newsy implements Serializable{
        private int id_newsu;
        private String temat = "brak";
        private String tresc = "brak";
        private Date data;
        
        @Id
        @GeneratedValue
        @Column(name = "id_newsu")
        public int getId_newsu() {
                return id_newsu;
        }
        public void setId_newsu(int id_newsu) {
                this.id_newsu = id_newsu;
        }
        
        public String getTemat() {
                return temat;
        }
        public void setTemat(String temat) {
                this.temat = temat;
        }
        
        public String getTresc() {
                return tresc;
        }
        public void setTresc(String tresc) {
                this.tresc = tresc;
        }
        
        public Date getData() {
                return data;
        }
        public void setData(Date data) {
                this.data = data;
        }
        
        @Override
        public String toString() {
                return "Newsy [id_newsu=" + id_newsu + ", temat=" + temat + ", tresc="
                                + tresc + ", data=" + data + "]";
        }
        
        
        
        

}